package com.kgc.servlet;

import com.kgc.entity.User;
import com.kgc.service.UserService;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
@WebServlet(name = "RegisterServlet",value = "/register.do")
public class RegisterServlet extends HttpServlet {

    protected void doPost(HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws ServletException, IOException {

        request.setCharacterEncoding("utf-8");

        String stu_no = request.getParameter("stu_no");
        String username = request.getParameter("username");
        String password = request.getParameter("password");
        String sex = request.getParameter("sex");
        String score = request.getParameter("score");
        String avatar = request.getParameter("avatar");
        String rid = request.getParameter("rid");
        String ltid = request.getParameter("ltid");

        User user = new User(null,stu_no,username,password,sex,score,avatar,rid,ltid);




    }


}
